import { FC } from 'react'
import Menu from './menu'
import { MenuProps } from './config'
import MenuItem, { MenuItemProps } from './MenuItem'
import SubMenu, { ISubMenuComponent } from './SubMenu'

export * from './config'
export * from './menu'

export type IMenuComponent = FC<MenuProps> & {
  MenuItem: FC<MenuItemProps>
  SubMenu: ISubMenuComponent
}

const TransMenu = Menu as IMenuComponent
TransMenu.MenuItem = MenuItem
TransMenu.SubMenu = SubMenu

export default TransMenu
